﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PBOffice.DAL;
using PBOffice.Models;

namespace PBOffice.BLL
{
    public class SysFunManager
    {
        public List<SysFun> GetAllSysFun()
        {
            return new SysFunService().GetAllSysFun();
        }
        public List<SysFun> GetAllSysFunByParId(int id)
        {
            return new SysFunService().GetAllSysFunByParId(id);
        }
        public SysFun GetSysFunByNodeId(int id)
        {
            return new SysFunService().GetSysFunByNodeId(id);
        }
        public void UpdateSysFun(SysFun sys)
        {
            new SysFunService().UpdateSysFun(sys);
        }
        public SysFun GetSysFunByOrderIdAndParentId(int orderId, int parentId)
        {
            return new SysFunService().GetSysFunByOrderIdAndParentId(orderId, parentId);
        }
    }
}
